package com.gary.controller;

import com.gary.entity.Cust;
import com.gary.mapper.ICustMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pengrui
 * @date 2020/11/25 - 17:39
 */
@RestController
public class CustController {

    @Autowired
    private ICustMapper iCustMapper;

    @GetMapping("/cust")
    public Cust queryById(Integer id) {
        Cust cust = iCustMapper.queryById(id);
        System.out.println(cust);
        return cust;
    }
}
